import request from '@/utils/request'

// 获取列表
export function getPageList(query) {
  return request({
    url: '/index/page',
    method: 'get',
    params: query
  })
}

// 获得详情
export function getPageDetailById(query) {
  return request({
    url: '/index/byId',
    method: 'get',
    params: query
  })
}

// 数据提交
export function addPageform(data) {
  return request({
    url: '/index',
    method: 'post',
    data: data
  })
}

// 数据提交
export function editPageform(data) {
  return request({
    url: '/index',
    method: 'put',
    data: data
  })
}

// 删除数据
export function deletePageListById(ids,classPath) {
  return request({
    url:`/index?ids=${ids}&classPath=${classPath}`,
    method: 'delete'
  })
}

